package com.scm.entity;

/**
 * @author CHL
 * @ClassName: StockRecord
 * @Description: TODO
 * @date 2022/3/8 15:10
 * @Version 1.0
 */
public class StockRecord
{
    private Integer stockId;
    private String productCode;
    private String orderCode;
    private Integer stockNum;
    private Integer stockType;
    private String stockTime;
    private String createUser;

    public void setStockId(Integer stockId)
    {
        this.stockId = stockId;
    }

    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public void setOrderCode(String orderCode)
    {
        this.orderCode = orderCode;
    }

    public void setStockNum(Integer stockNum)
    {
        this.stockNum = stockNum;
    }

    public void setStockType(Integer stockType)
    {
        this.stockType = stockType;
    }

    public void setStockTime(String stockTime)
    {
        this.stockTime = stockTime;
    }

    public void setCreateUser(String createUser)
    {
        this.createUser = createUser;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof StockRecord)) {
            return false;
        }
        StockRecord other = (StockRecord)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$stockId = getStockId();Object other$stockId = other.getStockId();
        if (this$stockId == null ? other$stockId != null : !this$stockId.equals(other$stockId)) {
            return false;
        }
        Object this$stockNum = getStockNum();Object other$stockNum = other.getStockNum();
        if (this$stockNum == null ? other$stockNum != null : !this$stockNum.equals(other$stockNum)) {
            return false;
        }
        Object this$stockType = getStockType();Object other$stockType = other.getStockType();
        if (this$stockType == null ? other$stockType != null : !this$stockType.equals(other$stockType)) {
            return false;
        }
        Object this$productCode = getProductCode();Object other$productCode = other.getProductCode();
        if (this$productCode == null ? other$productCode != null : !this$productCode.equals(other$productCode)) {
            return false;
        }
        Object this$orderCode = getOrderCode();Object other$orderCode = other.getOrderCode();
        if (this$orderCode == null ? other$orderCode != null : !this$orderCode.equals(other$orderCode)) {
            return false;
        }
        Object this$stockTime = getStockTime();Object other$stockTime = other.getStockTime();
        if (this$stockTime == null ? other$stockTime != null : !this$stockTime.equals(other$stockTime)) {
            return false;
        }
        Object this$createUser = getCreateUser();Object other$createUser = other.getCreateUser();return this$createUser == null ? other$createUser == null : this$createUser.equals(other$createUser);
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof StockRecord;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $stockId = getStockId();result = result * 59 + ($stockId == null ? 43 : $stockId.hashCode());Object $stockNum = getStockNum();result = result * 59 + ($stockNum == null ? 43 : $stockNum.hashCode());Object $stockType = getStockType();result = result * 59 + ($stockType == null ? 43 : $stockType.hashCode());Object $productCode = getProductCode();result = result * 59 + ($productCode == null ? 43 : $productCode.hashCode());Object $orderCode = getOrderCode();result = result * 59 + ($orderCode == null ? 43 : $orderCode.hashCode());Object $stockTime = getStockTime();result = result * 59 + ($stockTime == null ? 43 : $stockTime.hashCode());Object $createUser = getCreateUser();result = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());return result;
    }

    public String toString()
    {
        return "StockRecord(stockId=" + getStockId() + ", productCode=" + getProductCode() + ", orderCode=" + getOrderCode() + ", stockNum=" + getStockNum() + ", stockType=" + getStockType() + ", stockTime=" + getStockTime() + ", createUser=" + getCreateUser() + ")";
    }

    public Integer getStockId()
    {
        return this.stockId;
    }

    public String getProductCode()
    {
        return this.productCode;
    }

    public String getOrderCode()
    {
        return this.orderCode;
    }

    public Integer getStockNum()
    {
        return this.stockNum;
    }

    public Integer getStockType()
    {
        return this.stockType;
    }

    public String getStockTime()
    {
        return this.stockTime;
    }

    public String getCreateUser()
    {
        return this.createUser;
    }
}

